.class Lcom/waiqin365/lightapp/im/activity/cw;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/GroupsActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/cw;->a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cw;->a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/ChatActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "chatType"

    const/4 v2, 0x2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "groupId"

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cw;->a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupsActivity;)Lcom/waiqin365/lightapp/im/adapter/av;

    move-result-object v0

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightapp/im/adapter/av;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroup;->getGroupId()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cw;->a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;

    const/16 v2, 0x6c

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/im/activity/GroupsActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/cw;->a:Lcom/waiqin365/lightapp/im/activity/GroupsActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/im/activity/GroupsActivity;->overridePendingTransition(II)V

    return-void
.end method
